package com.lh.eemsserver.Service;

import com.lh.eemsserver.po.*;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface WorkerService {

    public Event getEventInfoByID(Event event);
    public List<Material> ListMaterialByLocation(Material material);
    public List<Report> listAllReport();
    public User userlogin(User user);
    public int newReportInfo(Report report);
    public List<Report> listReportByReporter(Report report);
    public List<Report> listReportByState(Report report);
    public List<Report> listReportByReportID(Report report);
    public List<Report> listReportByLastUpdater(Report report);
    public User getUserById(User user);
    public Integer updateWorker(User user);
    public String[] listAllLocationName();
    public List<City> listCityByName(City city);
    public String[] listAllCityName();
    public City getCityByID(City city);

    //public int insertMaterialLocation(Material material);
    public int insertChecker(Material material);
    public int insertMaterial(Material material);
    public List<City> listSelectedCity(String cityName);



    public int renewCityInfo(City city);

    public int deleteProcedureStep(Procedure procedure);
    public  List<Procedure> getProcedure(Report report);
    public int addProcedureStep(Procedure procedure);
    public int insertProcedureStep(Procedure procedure);
    public int downProcedureStep(Procedure procedure);
    public int delProcedureStep(Procedure procedure);
    public Procedure getProcedureByID(Procedure procedure);
    public int newEventType(Event event);
    public int renewProcedureStep(Procedure procedure);
    public int insertEnterprise(Enterprise enterprise);
    public int newProcedureInfo(Procedure procedure);

    public int getReporter(Report report);
    public int newReporterInfo(Report report);
    public int delProcedureInfo(Procedure procedure);

    public int getCheckerNum(Material material);
    public List<Material> ListAllMaterialInfo();

    public List<Material> getMaterialInfoByName(Material material);

    public List<City> listAllCity(City city);
    public int newMaterialInfo(Material material);

   // public int renewMaterialLocation(Material material);



    public int renewChecker(Material material);

    public int renewMaterial(Material material);

    public int delMaterialInfo(Material material);

    public int delAllMaterialInfo();

    public List<Enterprise> listAllEnterpriseInfo(Enterprise enterprise);

    public List<Enterprise> listEnterpriseInfoByName(Enterprise enterprise);

    public List<Enterprise> listEnterpriseInfoByType(Enterprise enterprise);
    public String[] listAllEventType();

    public int newEnterpriseInfo(Enterprise enterprise);

    public int renewEnterpriseInfo(Enterprise enterprise);

    public int delEnterpriseInfo(Enterprise enterprise);

    public int delAllEnterpriseInfo();

    public List<Event> listAllEventInfo();

    public List<Event> listEventInfoByName(Event event);

    public List<Event> listEventInfoByRank(Event event);

    public List<Event> listEventInfoByType(Event event);

    public int renewEventInfo(Event event);

    public int newEventInfo(Event event);

    public int delEventInfo(Event event);

    public int delAllEventInfo();

    public String getEventId(Event event);

    public User getUserName(User user);

}
